/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-03-23
 * Time:21:56
 */
public class TestDemo {
    public static boolean is_prime(int n){
        for(int i=2;i<n;i++){
            if(n%i==0){
                return false;
            }
        }
        if(n==1){
            return false;
        }
        if(n==2){
            return true;
        }
        return true;
    }
    public static void main(String[] args) {
        for (int i = 1; i <= 100; i++) {
            if(is_prime(i)==true){
                System.out.println(i);
            }
        }
    }
}
